﻿define(["service/service", "service/httpService"], function (service) {
    service.factory("orderService", function (httpService) {
        var methods = {
            gets: function (params) {
                return httpService.get("/order/gets", params);
            },
            getorders: function (params) {
                return httpService.get("/order/GetOrders", params);
            },
            get: function (params) {

                return httpService.get("/order/get", params);
            },
            getlogistics: function () {
                return httpService.get("/order/GetLogisticsNO");
            },
            saveshipping: function (params) {
                return httpService.post("/order/SaveShipping", params);
            },
            orderdelivery: function (params) {
                return httpService.post("/order/OrderDelivery", params);
            },
            shipping: function (params) {
                return httpService.post("/order/Shipping", params);
            },
            saverecipient: function (params) {
                return httpService.post("/order/Recipient", params);
            },
            stop: function (params) {
                return httpService.post("/order/stop", params);
            },
            push: function (params) {
                return httpService.post("/order/push", params);
            },
            saveinfo: function (params) {
                return httpService.post("/order/SaveInfo", params);
            },
            savesku: function (params) {
                return httpService.post("/order/SaveSku", params);
            },
            saveorder: function (params) {
                return httpService.post("/order/SaveOrder", params);
            },
            searchsku: function (params) {
                return httpService.post("/order/SearchSku", params);
            },
            ashipping: function (params) {
                return httpService.post("/order/AShipping", params);
            },
            importDelivery: function (params) {
                return httpService.upload("/order/importDelivery", params);
            }
        };
        return methods;
    });
});